#pragma once

#include "Math/Color.h"
#include "Containers/ThreadSafePtr.h"
#include "Scene/SceneNodeComponent.h"
#include "SpotLightComponent.m.h"

class CRenderSpotLight;

RCLASS() 
class WHENGINE_API RSpotLightComponent:public RSceneNodeComponent
{
    ROBJECT
public:

    virtual void Paint(CRenderScene* InRenderData) override;

    RFIELD()
    SColor Color=SColor::White;

    //how bright the light is
    RFIELD()
    float Intensity=1000000.f;

    //how far the light reaches
    RFIELD()
    float Radius=1000.f;

    RFIELD()
    float ConeAngle=90.f; 

    RFIELD()
    float ShadowBias=0.1f;

};